<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="js/jquery.min.js"></script> 
  <script>
    //窗口载入事件
    $(function(){
      var loc_href = window.location.href;
      // console.log(loc_href);
      var str = loc_href.split("?");
      getMsgDetail(str[1]);
    })
    //获取消息的详细内容
    function getMsgDetail(id){
      $.ajax({
        type: "get",
        url: "https://zhihu-daily.leanapp.cn/api/v1/contents/"+id,
        data: "",
        dataType: "json",
        success: function (response) {
          $("body").html(response.CONTENTS.body);
        }
      });
    }
  </script>
</head>
<body>
  
</body>
</html>